#include "NetworkEventGenerator.h"
#include "GMKeyChange.h"

void NetworkEventGenerator::OnKeyBoardUpEvent( const SDL_KeyboardEvent& e)
{
    GMKeyChange kc;
    kc.SetKey(e);
    kc.SetClientID(TheClient::Instance()->GetID());
    if(!TheClient::Instance()->SendToServer(kc))
    {
        //PANIC
        assert(0);
    }
}
void NetworkEventGenerator::OnKeyBoardDownEvent( const SDL_KeyboardEvent& e)
{
    GMKeyChange kc;
    kc.SetKey(e);
    kc.SetClientID(TheClient::Instance()->GetID());
    if(!TheClient::Instance()->SendToServer(kc))
    {
        //PANIC
        assert(0);
    }
}
void NetworkEventGenerator::OnMouseButton( const SDL_MouseButtonEvent& Event )
{

}
void NetworkEventGenerator::OnMouseMotion( const SDL_MouseMotionEvent& Event )
{

}

    